import * as React from "react";
import {  StyleSheet, Text, Button, View } from "react-native";
import LinearGradient from "react-native-linear-gradient";
//引入工具类
import app from "../utils/util";
import { Provider } from "@ant-design/react-native";



export default class Index extends React.Component {
  constructor(props) {
    super(props);
  }

  componentDidMount(){
    app.QQ('zhixin/info/allinfo').then(res=>{
      console.log(res);
    });
  }

  render() {
    return (
      <View style={styles.box}>
        <Provider>
          <LinearGradient colors={["#FFBA31", "#FF7911"]}
                          style={{ marginBottom: -20, flex:1, width: app.w,justifyContent:'center',alignItems:'center' }} start={{ x: 0.0, y: 0.25 }}
                          end={{ x: 0.5, y: 2.5 }}>
            <Text style={{marginTop:app.Bar,fontSize:18,color:'#fff'}}>类别</Text>
          </LinearGradient>
          <View style={styles.box_content}>
            <View>
              {/*<Button title={'点击'} onPress={loadingToast}></Button>*/}

            </View>
          </View>
        </Provider>

      </View>
    );
  }
}
const styles = StyleSheet.create({
  box: {
    width: app.w,
    height: app.h,
    backgroundColor: "#fff",
  },
  box_content: {
    flex:8
  },


});
